package com.itheima.overload;

public class MethodOverLoadDemo2 {
    public static void main(String[] args) {
        // 目标：方法重载的应用场景。
        fire();
        fire("岛国");
        fire("岛国", 1000);
    }

    public static void fire(){
        System.out.println("默认给小米果发射一枚~~~");
    }

    public static void fire(String location){
        System.out.println("默认给" + location + "发射一枚~~~");
    }

    public static void fire(String location, int number){
        System.out.println("默认给" + location + "发射" + number + "枚~~~");
    }
}
